package com.cmwa.scbp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableTransactionManagement
@ServletComponentScan
@Configuration

public class SpringBootStart extends SpringBootServletInitializer {

	/**
	 * 打成war包必须重写此方法
	 * @author ex-hejm
	 * @date 2019年3月8日下午4:46:18
	 */
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(SpringBootStart.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(SpringBootStart.class, args);
	}

}
